<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<%
	xMode = Request("xMode")
	showSubMenu = "70"
	
	isPerm = ""
	If Request.Cookies("S_level") = "05" then 
		isPerm = "none"
	End If
		
	'## ■■ User 정보 가져오기 ■■■■
	userSQL = "SELECT userId, userNm FROM tblUser WHERE delYN='N' AND uLevel<>'05' ORDER BY userNm" 

	Set userRs=Server.CreateObject("ADODB.RecordSet")
	userRs.open userSQL, DbCon, 1
	
	userAll = ""
	If userRs.eof Or userRs.bof Then 
	Else 
		Do Until userRs.eof Or userRs.bof
		
		userAll = userAll & "<option value=""" & userRs("userId") & """>" & userRs("userNm") & "</option>"' & vbcrlf
		userRs.movenext
		Loop 
	End If

%>
<!-- #include virtual=/inc/header.inc.asp -->  

<BODY topmargin="0" leftmargin="0">
<!-- #include virtual=/inc/menu.inc.asp -->  

<!-- 검색 영역 시작 -->
<div style="text-align:left;margin-top:20px;">
<!-- #include virtual=/inc/subMenu.inc.asp --> 
<table border="0" cellpadding="0" cellspacing="0" width="1237" style="margin-left:5px;">
	<form name="frmSearch">
	<tr height="40">
		<td style="padding: 0px 0 0px 10px;background-image:url(/inc/layout/panel-title-light-bg.gif);font-weight:bold;text-align:left" width="100%" class="lTD_trbl"> &nbsp; 
			<input type="text" id="findStartDt" size="10" readOnly class="inputBox" value="<%=dateadd("m",-1,Date())%>" onclick="Calendar_D(document.frmSearch.findStartDt);"> - <input type="text" id="findEndDt" size="10" readOnly value="<%=dateadd("m",1,Date())%>" class="inputBox" onclick="Calendar_D(document.frmSearch.findEndDt);"> &nbsp; 
			<select id="findUserId">
				<option value="">--근무자--</option>
				<%=userAll%>
			</select>
			<input type="button" onClick="grid01List()" value="검 색" class="inputBtn">&nbsp;
			<input type="button" onClick="fnSearchReset()" value="Reset" class="inputBtn">
		</td>
	</tr>
	</form>
</table>
</div>
<!-- 검색 영역 끝 -->


<br>

<!-- 그리드 시작 -->
<div style="text-align:left">
<table border="0" cellpadding="0" cellspacing="0" width="1235" style="margin-left:5px;text-align:left">
	<tr>
		<td width="100%" class="lTD_trbl" valign="top" style="padding: 5px 5px 5px 5px;">
			<table border="0" cellpadding="0" cellspacing="0" width="670">
				<tr height="24">
					<td style="padding: 0 0 0 0;text-align:left" width="300"><div><input type="text" class="subTitle" style="width:80px;" value="코드관리" ReadOnly>&nbsp;<a href="javascript:grid01List()">[새로고침]</a> &nbsp;</div> </td>
					<td style="padding: 0 20 0 0;" align="right" width="370"><B>Total :</B> <span id="grid01Cnt" style="font-weight:bold">0</span></td>
				</tr>
			</table>
			<table border="0" cellpadding="0" cellspacing="0" width="670"><tr><td style="background-color:#3366CC;height:2px"></td></tr></table>
			<div class="tblContainer" id="gridLayer01" style="width:670px; height:600px; overflow-y:scroll">
			<form name="frmGrid01">
			<table border="0" id="Grid01" width="653" cellpadding="0" cellspacing="0">
				<thead>
				<tr bgcolor="#EEECE7" height="25" align="center">
					<td width="40" class="lTD_0rbl gridTitle">No.</td>
					<td width="100" class="lTD_0rb0 gridTitle">근무일</td>
					<td width="60" class="lTD_0rb0 gridTitle">근무시간</td>
					<td width="100" class="lTD_0rb0 gridTitle">근무자</td>
					<td width="50" class="lTD_0rb0 gridTitle">유효</td>
					<td width="303" class="lTD_0rb0 gridTitle">&nbsp;</td>
				</tr>
				<tr id="tr01Result" bgcolor="#FFFFFF" height="25" align="center">
					<td colspan="6" style="color:#948D88; BORDER-TOP: #abccf8 0px solid;" class="lTD_0rbl"><span id="loadSpan1" style="color:#CE7302">검색된 자료가 없습니다.</span></td>
				</tr>
				</thead>
				<tbody></tbody>
			</table>
			</form>
			</div>
			<table border="0" width="670" cellpadding="0" cellspacing="0">
				<tr>
					<td align="left" colspan="6" bgcolor="FFFFFF" style="BORDER-BOTTOM: #abccf8 1px solid;BORDER-LEFT: #abccf8 1px solid;BORDER-TOP: #abccf8 1px solid;BORDER-RIGHT: #abccf8 1px solid;padding-top:0px">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr align="center" height="30">
								<td style="background-image:url(/inc/layout/panel-title-light-bg.gif)"><span id="pageDiv01"></span></td>
							</tr>									
						</table>
					</td>
				</tr>
			</table>
		</td>
		<td valign="top" style="text-align:center; padding-left:5px">					
			<table border="0" cellpadding="0" cellspacing="0" width="500">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="490">
						<form name="frmOffDayWork">
						<input type="hidden" id="seq">
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								근 &nbsp;&nbsp; 무 &nbsp;&nbsp; 자 &nbsp;&nbsp; : &nbsp;<select id="userId"><option value="">--근무자--</option><%=userAll%></select>
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								근 &nbsp;&nbsp; 무 &nbsp;&nbsp; 일 &nbsp;&nbsp; :&nbsp;
								<input type="text" id="workDt" size="13" readOnly class="specialBox" onclick="Calendar_D(document.frmOffDayWork.workDt);"> &nbsp; 
								<select id="workTm">
									<option value="">--근무시간--</option>
									<!--<option value="1">1시간</option>-->
									<option value="2">2시간</option>
									<option value="3">3시간</option>
									<option value="4">4시간</option>
									<option value="5">5시간</option>
									<option value="6">6시간</option>
									<option value="7">7시간</option>
									<option value="8">8시간</option>
									<option value="9">9시간</option>
									<option value="10">10시간</option>
									<option value="99">정상근무</option>
									<option value="88">휴가</option>
								</select>
							</td>
						</tr>
						<tr style="display:<%=isPerm%>">
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								<select name="flag" id="flag">
									<option value="Y">유효</option>
									<option value="N">무효</option>
								</select> &nbsp; &nbsp;<input type="text" id="accessInfo" style="font-weight:normal;width:250px; border:0px">
								<span>
								<input type="button" value="저장" class="inputBtn" onClick="fnSave()"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnReset()">
								</span>
							</td>
						</tr>
						</form>
					</table>
				  </td>
				</tr>
			</table>
		</td>		
		<td width="185">
			<table border="0" cellpadding="0" cellspacing="0" width="147">
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</div>
<!-- 그리그 끝 -->

<script language="javascript">
	setMainMenu();
	fnCommonInit();
//	//## 테스트를 위한 기본 값세팅	
//	$("#prdNm").val("연습00");
//	$("#etcPrdCd").val("TEST01-00");
//	$("#remarks").val("연습중\r\nThis is testing....");
</script>
</BODY>
</HTML>